<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StoreAction.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Database.StoreAction" %>
<div>
 <table class="content" cellspacing="1" cellpadding="0" width="100%">
    <tr>
        <td class="header2" valign="middle" align="left">
            <asp:HyperLink ID="lnkProcList" runat="server" Text="Proc List"></asp:HyperLink>
                    &nbsp;|&nbsp;
            <asp:HyperLink ID="lnkProcDetails" runat="server" Text="ProcDetails"></asp:HyperLink>
        </td>
    </tr>
</table>
<br />
    <asp:UpdatePanel ID="upanelGridUserManagemt" runat="server" UpdateMode="Conditional"
        RenderMode="Inline">
        <ContentTemplate>
            <table class="content" cellspacing="1" cellpadding="0" width="100%">
             <tr>
                <td class="header1" align="left" style="height: 19px">
                    <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left">
                    <asp:Label ID="lblError" runat="server" Visible="false" SkinID="error"></asp:Label>
                </td>
            </tr>                    
            <asp:Panel ID="pnlDrop" runat="server" Visible="False">
            <tr>
                <td class="postheader" align="left">
                    <asp:Label ID="lblDeleteProcName" SkinID="tableCellTitle" Text="Delete ProcName"
                    runat="server"></asp:Label>
                    :
                    <asp:Label ID="lblDropProcName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="postfooter" valign="middle" align="left">
                    <asp:Button ID="btnDrop" CssClass="pbutton" OnClick="btnDrop_Click" runat="server" Text="Drop" />
                </td>
            </tr>               
            </asp:Panel>
            <asp:Panel ID="pnlRename" runat="server" Visible="False"> 
            <tr>
                <td class="postheader" align="left">
                    <asp:Label ID="lblRenameProcName" Text="Rename"
                    runat="server"></asp:Label>
                    :
                    <asp:Label ID="lblRenProcName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left">
                    <asp:Label ID="lblNewName" runat="server" Text="NewName"></asp:Label>
                :
                <asp:Label ID="lblOwnerNewName" runat="server"></asp:Label>.<asp:TextBox ID="txtNewName"
                    runat="server" Columns="40"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldtxtNewName" runat="server" ErrorMessage="*"
                    ControlToValidate="txtNewName" Display="Dynamic" SkinID="error"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="postfooter" valign="middle" align="left">
                    <asp:Button ID="btnRename" CssClass="pbutton" OnClick="btnRename_Click" runat="server" Text="Rename" />
                </td>
            </tr>                 
            </asp:Panel>
            <asp:Panel ID="pnlExec" runat="server" Visible="False">
            <tr>
                <td class="postheader" align="left">
                    <asp:Label ID="lblNameExecProc" SkinID="tableCellTitle" runat="server" Text="Name ExecProc"></asp:Label>
                        :
                    <asp:Label ID="lblExecProc" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left">
                    <asp:GridView ID="gridColumns" runat="server" AutoGenerateColumns="False" OnRowDataBound="gridColumns_OnRowDataBound">
                        <Columns>
                            <asp:BoundField DataField="COLUMN_TYPE" HeaderText="Direction" HtmlEncode="False" />
                            <asp:BoundField DataField="COLUMN_NAME" HeaderText="Name" HtmlEncode="False" />
                            <asp:BoundField DataField="TYPE_NAME" HeaderText="Type"
                                HtmlEncode="False" />
                            <asp:BoundField DataField="PRECISION" HeaderText="Width"
                                HtmlEncode="False" />
                            <asp:TemplateField HeaderText="Null"
                                ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:CheckBox ID="checkNULL" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Value">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtValue" runat="server"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="postfooter" valign="middle" align="left">
                    <asp:Button ID="btnExecute" runat="server" Text="Execute" CssClass="pbutton" OnClick="btnExecute_Click" />
                </td>
            </tr> 
            <asp:Panel ID="pnlResults" runat="server" Visible="false" GroupingText="Results">
            <tr>
                <td class="postheader" align="left">
                    <asp:GridView ID="gridResults" runat="server"></asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left">                
                    <asp:DataList ID="dataOutputParam" runat="server" OnItemDataBound="dataOutputParam_ItemDataBound">
                        <ItemTemplate>
                            <asp:Label ID="lblParamNameTitle" Text="Param Name Title"
                                SkinID="tableCellTitle" runat="server"></asp:Label>:
                            <asp:Label ID="lblParamName" runat="server"></asp:Label><br />
                            <asp:Label ID="lblParamValueTitle" Text="Param Value Title"
                                SkinID="tableCellTitle" runat="server"></asp:Label>:
                            <asp:Label ID="lblParamValue" runat="server"></asp:Label>
                        </ItemTemplate>                        
                        <HeaderTemplate>
                            <asp:Label ID="lblHeaderTemplate" Text="Header Template"
                                runat="server"></asp:Label>
                        </HeaderTemplate>
                        
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left">                
                    <asp:Label ID="lblRETURN" runat="server">@RETURN_VALUE</asp:Label>:
                    <asp:Label ID="lblRETURN_VALUE" runat="server"></asp:Label>
                </td>
            </tr>
            </asp:Panel>
        </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>